package com.day01;

public class Cat1$ {
    public static Cat1$ MODULE$;
    private final int id;
    private String name;

    //静态代码块
    static {
        new Cat1$();
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private Cat1$(){
        this.MODULE$ = this;
        this.id = 1;
        this.name = "tom";
    }

}
